home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / TPWENG / SETDEF.PAS < prev    next >
Pascal/Delphi Source File  |  1991-07-22  |  643b  |  27 lines

  1. program SetDef;
  2. uses PXEngine, WinCrt;
  3.  
  4.  
  5. var   PxErr: Integer;
  6.  
  7. procedure PX(Code : integer);
  8. begin
  9.   writeln(PXErrMsg(Code));
  10. end;
  11.  
  12. begin
  13.   (* Prepare Engine for initialization using maximum buffer
  14.      size, maximum  allowable number of tables, locks and
  15.      files.  Leave MaxRecBufs and SortOrder at their present
  16.      value.
  17.   *)
  18.   PxErr := PXSetDefaults(MaxSwapSize, MaxTableHandles, PxDefault,
  19.                MaxLockHandles, MaxFileHandles, DefSortOrder);
  20.   if PxErr <> PxSuccess then
  21.     Writeln(PxErrMsg(PxErr));
  22.  
  23.   (* Call PXInit with new default values *)
  24.   PX(PXWinInit('MyApp', pxShared));
  25.   PX(PXExit);
  26. end.
  27.